<?python
    from mnemoply._renewed_constants import getDefaultController
    from turbogears import identity

    from mnemoply.mass_actions import registry
    from mnemoply.controllers.MassActions import make_mass_action_url
    from sqlobject import classregistry
    
    show_actions = True

    def can_exec(mass_action):
        return identity.has_any_permission(
            'dba', '%s/%s' % (mass_action.target_class.getModelName(), mass_action.name))
?>

    <span xmlns="http://www.w3.org/1999/xhtml"
      xmlns:xi="http://www.w3.org/2001/XInclude"
      xmlns:py="http://genshi.edgewall.org/">
        
        <?python
            records = list(tab.getRecords(obj))
            records_count = len(records)
            ma_class = classregistry.findClass(tab.ma_class_name)
            mass_actions = [x for x in registry.getActionsForClass(ma_class) if can_exec(x)]
        ?>
        <script type="text/javascript">
            no_items_selected_message = '${_("You need to select at least one record")}'
        var setIframe = function() {
    var ifr = document.getElementById('ifr1');
    ifr.style.height = getClientHeight() - 100 +'px';
}</script>
        <span py:if="records_count == 0">No records</span>

        <span py:if="records_count > 0">
            <br />

            <span py:for="n, record in enumerate(records)">
                <span>${n+1}</span>
                <?python
                controller = getDefaultController(record.__class__.__name__)
                ?>
                <a href="/${controller}/${record.id}">${tab.getRecordTitle(record)}</a>
                <br />
            </span>

        </span>
<div id='ifr1' onclick='this.style.height="500px";' >
        <iframe style='width: 70%; height: 100%' src='/AccountFree_new/list'
                onload="document.getElementById('ifr1').style.height = document.documentElement.clientWidth() - 200 +'px';">
            
        </iframe>

</div>

    </span>
